package cc.telecomdigital.tdstock.activity.groups.monitor.util;

public class ItemRecord
{
	public String	itemCode;
	public String	itemName;
	public String	itemAdapter;

	public ItemRecord(String itemCode, String itemName, String itemAdapter)
	{
		this.itemAdapter = itemAdapter;
		this.itemCode = itemCode;
		this.itemName = itemName;
	}

	@Override
	public boolean equals(Object o)
	{
		return itemCode
				.equals(o instanceof ItemRecord ? ((ItemRecord) o).itemCode
						: null);
	}

	@Override
	public int hashCode()
	{
		return itemCode.hashCode();
	}

}
